<?php

namespace App\Http\Controllers\Customers;

use App\Http\Controllers\BasicInterfaceController;
use App\Http\Requests\System\ListRequest;
use App\Http\Service\Customers\ManageCustomersService;

class ManageCustomersController implements BasicInterfaceController
{

    public function getList()
    {
        $request = request()->only('page','page_size','filters','desc');
        (new ListRequest())->check($request);
        (new ManageCustomersService())->getList($request);
    }

    public function getSelect()
    {
        (new ManageCustomersService())->getSelect();
    }

    public function getSelectHasPage()
    {
        $request = request()->only('page','page_size','filters','desc');
        (new ListRequest())->check($request);
        (new ManageCustomersService())->getSelectHasPage($request);
    }

    public function getInfo($id)
    {
        (new ManageCustomersService())->getInfo($id);
    }

    public function disable($id){

    }

    public function enable($id){

    }


    public function create()
    {

    }

    public function fakeDelete($id)
    {

    }

    public function fakeDeleteByIds($ids)
    {

    }

    public function delete()
    {

    }

    public function update($id)
    {

    }

}
